.class Lcom/esfile/screen/recorder/media/c$h;
.super Ljava/lang/Object;
.source "DuVideoStitcher.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/media/c;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "h"
.end annotation


# instance fields
.field private A:Les/s9$b;

.field private B:Les/j9$b;

.field final synthetic C:Lcom/esfile/screen/recorder/media/c;

.field private a:Ljava/lang/String;

.field private final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/c$f;",
            ">;"
        }
    .end annotation
.end field

.field private c:Les/j9;

.field private d:Les/s9;

.field private e:Z

.field private f:Z

.field private g:Z

.field private h:Z

.field private i:Les/f8;

.field private j:Les/t7;

.field private k:Les/aa;

.field private final l:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ba;",
            ">;"
        }
    .end annotation
.end field

.field private m:I

.field private n:I

.field private o:I

.field private p:Z

.field private q:J

.field private r:Les/ja$d;

.field private s:Les/y9$f;

.field private t:Les/ia$b;

.field private u:Z

.field private v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

.field private w:J

.field private x:J

.field private y:J

.field private z:J


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/media/c;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/c$f;",
            ">;",
            "Ljava/util/List<",
            "Les/ba;",
            ">;",
            "Ljava/util/List<",
            "Les/g8;",
            ">;",
            "Ljava/util/List<",
            "Les/s7;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->C:Lcom/esfile/screen/recorder/media/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->f:Z

    .line 4
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    .line 5
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    const/4 v0, -0x1

    .line 6
    iput v0, p0, Lcom/esfile/screen/recorder/media/c$h;->m:I

    .line 7
    iput v0, p0, Lcom/esfile/screen/recorder/media/c$h;->n:I

    .line 8
    iput v0, p0, Lcom/esfile/screen/recorder/media/c$h;->o:I

    .line 9
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->p:Z

    const-wide/16 v0, 0x0

    .line 10
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->q:J

    .line 11
    sget-object p1, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_XY:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    .line 12
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J

    .line 13
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    .line 14
    new-instance p1, Lcom/esfile/screen/recorder/media/c$h$a;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/media/c$h$a;-><init>(Lcom/esfile/screen/recorder/media/c$h;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->A:Les/s9$b;

    .line 15
    new-instance p1, Lcom/esfile/screen/recorder/media/c$h$b;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/media/c$h$b;-><init>(Lcom/esfile/screen/recorder/media/c$h;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->B:Les/j9$b;

    .line 16
    iput-object p2, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    .line 17
    new-instance p1, Ljava/util/ArrayList;

    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result p2

    invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->b:Ljava/util/List;

    .line 18
    invoke-interface {p1, p3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 19
    new-instance p1, Ljava/util/ArrayList;

    invoke-interface {p4}, Ljava/util/List;->size()I

    move-result p2

    invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    .line 20
    invoke-interface {p1, p4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    if-eqz p5, :cond_0

    .line 21
    invoke-interface {p5}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_0

    .line 22
    new-instance p1, Les/f8;

    invoke-direct {p1, p5}, Les/f8;-><init>(Ljava/util/List;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->i:Les/f8;

    :cond_0
    if-eqz p6, :cond_1

    .line 23
    invoke-interface {p6}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_1

    .line 24
    new-instance p1, Les/t7;

    invoke-direct {p1, p6}, Les/t7;-><init>(Ljava/util/List;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h;->j:Les/t7;

    :cond_1
    return-void
.end method

.method private declared-synchronized a(JZ)J
    .locals 4

    monitor-enter p0

    const-wide/16 v0, 0x0

    if-eqz p3, :cond_2

    .line 141
    :try_start_0
    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->y:J

    cmp-long p3, p1, v2

    if-ltz p3, :cond_1

    .line 142
    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->y:J

    cmp-long p3, v2, v0

    if-ltz p3, :cond_0

    .line 143
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J

    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->y:J

    sub-long v2, p1, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J

    .line 144
    :cond_0
    iput-wide p1, p0, Lcom/esfile/screen/recorder/media/c$h;->y:J

    .line 145
    :cond_1
    iget-wide p1, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide p1

    .line 146
    :cond_2
    :try_start_1
    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->z:J

    cmp-long p3, p1, v2

    if-ltz p3, :cond_4

    .line 147
    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->z:J

    cmp-long p3, v2, v0

    if-ltz p3, :cond_3

    .line 148
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->z:J

    sub-long v2, p1, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    .line 149
    :cond_3
    iput-wide p1, p0, Lcom/esfile/screen/recorder/media/c$h;->z:J

    .line 150
    :cond_4
    iget-wide p1, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-wide p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/c$h;JZ)J
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/media/c$h;->a(JZ)J

    move-result-wide p0

    return-wide p0
.end method

.method private a(Ljava/util/List;)Ljava/lang/Exception;
    .locals 41
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/c$f;",
            ">;)",
            "Ljava/lang/Exception;"
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "rotation-degrees"

    const/4 v2, 0x0

    .line 66
    iput-boolean v2, v1, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    move-object/from16 v3, p1

    .line 67
    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/esfile/screen/recorder/media/c$f;

    .line 68
    new-instance v5, Lcom/esfile/screen/recorder/media/mp4parser/MP4Parser;

    invoke-direct {v5}, Lcom/esfile/screen/recorder/media/mp4parser/MP4Parser;-><init>()V

    .line 69
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    const-wide/16 v6, -0x1

    const/16 v13, 0x19

    const v14, 0x7a1200

    const/16 v15, 0x3e80

    move-wide v13, v6

    const/4 v8, -0x1

    const v15, 0x7a1200

    const/16 v16, 0x0

    const/16 v17, -0x1

    const/16 v18, 0x0

    const/16 v19, 0x1

    const/16 v20, 0x0

    const-wide/16 v21, 0x0

    const/16 v23, 0x0

    const/16 v24, 0x0

    const/16 v28, 0x19

    const/16 v29, 0x3e80

    const/16 v30, 0x1

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v25

    const-wide/16 v26, 0x3e8

    const-string v9, "dvsr"

    if-eqz v25, :cond_19

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/esfile/screen/recorder/media/c$f;

    .line 70
    invoke-virtual {v10}, Lcom/esfile/screen/recorder/media/c$f;->a()Z

    move-result v25

    if-eqz v25, :cond_1

    .line 71
    iget-wide v11, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    move-object/from16 v33, v3

    iget-wide v2, v10, Lcom/esfile/screen/recorder/media/c$f;->c:J

    sub-long/2addr v11, v2

    invoke-static {v11, v12}, Ljava/lang/Math;->abs(J)J

    move-result-wide v2

    cmp-long v9, v2, v6

    if-lez v9, :cond_0

    .line 72
    iget v6, v10, Lcom/esfile/screen/recorder/media/c$f;->f:I

    .line 73
    iget v7, v10, Lcom/esfile/screen/recorder/media/c$f;->g:I

    move/from16 v20, v6

    move/from16 v23, v7

    move-wide v6, v2

    :cond_0
    add-long v21, v21, v2

    move-object/from16 v3, v33

    const/4 v2, 0x0

    goto :goto_0

    :cond_1
    move-object/from16 v33, v3

    .line 74
    new-instance v2, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v2}, Landroid/media/MediaMetadataRetriever;-><init>()V

    .line 75
    iget-object v3, v10, Lcom/esfile/screen/recorder/media/c$f;->a:Ljava/lang/Object;

    check-cast v3, Ljava/lang/String;

    .line 76
    :try_start_0
    invoke-static {v3}, Lcom/esfile/screen/recorder/media/util/u;->a(Ljava/lang/String;)[Landroid/media/MediaFormat;

    move-result-object v11

    const/16 v19, 0x0

    .line 77
    aget-object v12, v11, v19

    const/16 v19, 0x1

    .line 78
    aget-object v11, v11, v19

    if-eqz v11, :cond_2

    const/16 v19, 0x1

    goto :goto_1

    :cond_2
    const/16 v19, 0x0

    :goto_1
    if-nez v19, :cond_3

    .line 79
    new-instance v0, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "The source doesn\'t has video track. "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v4}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_6
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 80
    :try_start_1
    invoke-virtual {v2}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_1
    .catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    return-object v0

    :cond_3
    if-eqz v12, :cond_4

    const/16 v19, 0x1

    goto :goto_2

    :cond_4
    const/16 v19, 0x0

    :goto_2
    if-eqz v19, :cond_5

    move-wide/from16 v35, v6

    .line 81
    :try_start_2
    iget v6, v10, Lcom/esfile/screen/recorder/media/c$f;->e:F

    const/4 v7, 0x0

    cmpl-float v6, v6, v7

    if-lez v6, :cond_6

    const/4 v6, 0x1

    .line 82
    iput-boolean v6, v1, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    goto :goto_3

    :cond_5
    move-wide/from16 v35, v6

    :cond_6
    const/4 v6, 0x1

    .line 83
    :goto_3
    invoke-virtual {v2, v3}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    const/16 v7, 0x9

    .line 84
    invoke-virtual {v2, v7}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v7

    .line 85
    invoke-static {v7}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v7

    int-to-long v6, v7

    mul-long v6, v6, v26

    move-object/from16 v34, v0

    .line 86
    iget-wide v0, v10, Lcom/esfile/screen/recorder/media/c$f;->c:J
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_6
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move-object/from16 v37, v2

    move-object/from16 v38, v3

    const-wide/16 v2, 0x0

    :try_start_3
    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    iput-wide v0, v10, Lcom/esfile/screen/recorder/media/c$f;->c:J

    .line 87
    iget-wide v2, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    cmp-long v26, v2, v6

    if-gtz v26, :cond_7

    iget-wide v2, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    const-wide/16 v26, 0x0

    cmp-long v39, v2, v26

    if-ltz v39, :cond_8

    iget-wide v2, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    cmp-long v26, v2, v0

    if-gez v26, :cond_8

    .line 88
    :cond_7
    iput-wide v6, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    .line 89
    :cond_8
    iget-wide v0, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    const-wide/16 v2, 0x0

    cmp-long v26, v0, v2

    if-ltz v26, :cond_9

    iget-wide v6, v10, Lcom/esfile/screen/recorder/media/c$f;->d:J

    .line 90
    :cond_9
    new-instance v0, Les/ea;

    iget-object v1, v10, Lcom/esfile/screen/recorder/media/c$f;->k:Ljava/util/List;

    invoke-direct {v0, v1}, Les/ea;-><init>(Ljava/util/List;)V

    .line 91
    iget-wide v1, v10, Lcom/esfile/screen/recorder/media/c$f;->c:J

    invoke-virtual {v0, v1, v2, v6, v7}, Les/ea;->a(JJ)J

    move-result-wide v0

    add-long v21, v21, v0

    .line 92
    invoke-static {v11}, Lcom/esfile/screen/recorder/media/util/d;->a(Landroid/media/MediaFormat;)Les/b9;

    move-result-object v2

    if-eqz v2, :cond_a

    .line 93
    iget v3, v2, Les/b9;->b:I

    invoke-static {v3}, Lcom/esfile/screen/recorder/media/util/c;->g(I)I

    move-result v3

    .line 94
    iget v6, v2, Les/b9;->c:I

    invoke-static {v6}, Lcom/esfile/screen/recorder/media/util/c;->f(I)I

    move-result v6

    goto :goto_4

    :cond_a
    const/4 v3, -0x1

    const/4 v6, -0x1

    .line 95
    :goto_4
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v26, v2

    const-string v2, "profile:"

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, " level:"

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v9, v2}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "width"

    .line 96
    invoke-virtual {v11, v2}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v2

    const-string v7, "height"

    .line 97
    invoke-virtual {v11, v7}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v7
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    cmp-long v9, v0, v13

    if-lez v9, :cond_18

    move-object/from16 v9, v38

    .line 98
    :try_start_4
    invoke-virtual {v5, v9}, Lcom/esfile/screen/recorder/media/mp4parser/MP4Parser;->a(Ljava/lang/String;)V

    .line 99
    invoke-virtual {v5}, Lcom/esfile/screen/recorder/media/mp4parser/MP4Parser;->a()Les/f9;

    move-result-object v4
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_5

    :catch_1
    const/4 v4, 0x0

    :goto_5
    :try_start_5
    const-string v8, "frame-rate"

    const/4 v13, -0x1

    .line 100
    invoke-static {v11, v8, v13}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v8

    if-eqz v4, :cond_d

    if-gtz v8, :cond_c

    .line 101
    iget-wide v13, v4, Les/f9;->d:J

    const-wide/16 v31, 0x0

    cmp-long v16, v13, v31

    if-lez v16, :cond_b

    .line 102
    iget-object v8, v4, Les/f9;->h:Les/f9$b;

    iget v8, v8, Les/f9$b;->a:I

    int-to-long v13, v8

    const-wide/32 v16, 0xf4240

    mul-long v13, v13, v16

    move-wide/from16 v38, v0

    iget-wide v0, v4, Les/f9;->d:J

    div-long/2addr v13, v0

    long-to-int v0, v13

    move v8, v0

    goto :goto_6

    :cond_b
    move-wide/from16 v38, v0

    goto :goto_6

    :cond_c
    move-wide/from16 v38, v0

    const-wide/16 v31, 0x0

    .line 103
    :goto_6
    iget-object v0, v4, Les/f9;->e:Les/f9$a;

    iget v0, v0, Les/f9$a;->c:I

    if-lez v0, :cond_e

    iget-object v0, v4, Les/f9;->e:Les/f9$a;

    iget v0, v0, Les/f9$a;->c:I
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    move v13, v0

    goto :goto_7

    :cond_d
    move-wide/from16 v38, v0

    const-wide/16 v31, 0x0

    :cond_e
    const/4 v13, -0x1

    :goto_7
    if-gtz v13, :cond_10

    const/16 v0, 0x14

    move-object/from16 v1, v37

    .line 104
    :try_start_6
    invoke-virtual {v1, v0}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_f

    .line 105
    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v13

    goto :goto_8

    :cond_f
    const/4 v13, -0x1

    goto :goto_8

    :catch_2
    move-exception v0

    goto/16 :goto_b

    :cond_10
    move-object/from16 v1, v37

    :goto_8
    if-lez v13, :cond_11

    move v15, v13

    :cond_11
    if-lez v8, :cond_12

    move/from16 v28, v8

    :cond_12
    move-object/from16 v0, v34

    .line 106
    invoke-virtual {v11, v0}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z

    move-result v4

    const/16 v8, 0x10e

    const/16 v13, 0x5a

    if-eqz v4, :cond_14

    .line 107
    invoke-virtual {v11, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v4

    if-eq v4, v13, :cond_13

    if-ne v4, v8, :cond_14

    :cond_13
    move/from16 v40, v7

    move v7, v2

    move/from16 v2, v40

    .line 108
    :cond_14
    iget v4, v10, Lcom/esfile/screen/recorder/media/c$f;->h:I

    if-eq v4, v13, :cond_15

    iget v4, v10, Lcom/esfile/screen/recorder/media/c$f;->h:I

    if-ne v4, v8, :cond_16

    :cond_15
    move/from16 v40, v7

    move v7, v2

    move/from16 v2, v40

    :cond_16
    if-eqz v19, :cond_17

    const-string v4, "sample-rate"

    const/4 v11, 0x0

    .line 109
    invoke-static {v12, v4, v11}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v4

    const-string v8, "channel-count"

    .line 110
    invoke-static {v12, v8, v11}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v30
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    move/from16 v16, v2

    move v8, v3

    move/from16 v29, v4

    goto :goto_9

    :cond_17
    const/4 v11, 0x0

    move/from16 v16, v2

    move v8, v3

    :goto_9
    move/from16 v17, v6

    move/from16 v18, v7

    move-object v4, v10

    move-object/from16 v24, v26

    move-wide/from16 v13, v38

    goto :goto_a

    :catch_3
    move-exception v0

    move-object/from16 v1, v37

    goto :goto_b

    :cond_18
    move-object/from16 v0, v34

    move-object/from16 v1, v37

    const/4 v11, 0x0

    const-wide/16 v31, 0x0

    .line 111
    :goto_a
    :try_start_7
    invoke-virtual {v1}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_7
    .catch Ljava/lang/RuntimeException; {:try_start_7 .. :try_end_7} :catch_4

    :catch_4
    const/4 v2, 0x0

    const/16 v19, 0x0

    move-object/from16 v1, p0

    move-object/from16 v3, v33

    move-wide/from16 v6, v35

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    move-object/from16 v1, v37

    goto :goto_c

    :catch_5
    move-exception v0

    move-object/from16 v1, v37

    move-object/from16 v9, v38

    goto :goto_b

    :catchall_1
    move-exception v0

    move-object v1, v2

    goto :goto_c

    :catch_6
    move-exception v0

    move-object v1, v2

    move-object v9, v3

    .line 112
    :goto_b
    :try_start_8
    new-instance v2, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "The source is a corrupt video file. "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_2

    .line 113
    :try_start_9
    invoke-virtual {v1}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_9
    .catch Ljava/lang/RuntimeException; {:try_start_9 .. :try_end_9} :catch_7

    :catch_7
    return-object v2

    :catchall_2
    move-exception v0

    :goto_c
    :try_start_a
    invoke-virtual {v1}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_a
    .catch Ljava/lang/RuntimeException; {:try_start_a .. :try_end_a} :catch_8

    .line 114
    :catch_8
    throw v0

    :cond_19
    const/4 v11, 0x0

    const v0, 0x2dc6c0

    if-ge v15, v0, :cond_1a

    const v0, 0xf4240

    add-int/2addr v15, v0

    :cond_1a
    move v0, v15

    .line 115
    iget-object v1, v4, Lcom/esfile/screen/recorder/media/c$f;->i:Landroid/graphics/RectF;

    if-eqz v1, :cond_1d

    .line 116
    invoke-virtual {v1}, Landroid/graphics/RectF;->width()F

    move-result v1

    iget-boolean v2, v4, Lcom/esfile/screen/recorder/media/c$f;->j:Z

    if-eqz v2, :cond_1b

    move/from16 v2, v16

    goto :goto_d

    :cond_1b
    const/4 v2, 0x1

    :goto_d
    int-to-float v2, v2

    mul-float v1, v1, v2

    float-to-int v1, v1

    .line 117
    iget-object v2, v4, Lcom/esfile/screen/recorder/media/c$f;->i:Landroid/graphics/RectF;

    invoke-virtual {v2}, Landroid/graphics/RectF;->height()F

    move-result v2

    iget-boolean v3, v4, Lcom/esfile/screen/recorder/media/c$f;->j:Z

    if-eqz v3, :cond_1c

    move/from16 v3, v18

    goto :goto_e

    :cond_1c
    const/4 v3, 0x1

    :goto_e
    int-to-float v3, v3

    mul-float v2, v2, v3

    float-to-int v2, v2

    move-object/from16 v3, p0

    goto :goto_f

    :cond_1d
    move-object/from16 v3, p0

    move/from16 v1, v16

    move/from16 v2, v18

    .line 118
    :goto_f
    iget-object v4, v3, Lcom/esfile/screen/recorder/media/c$h;->j:Les/t7;

    if-eqz v4, :cond_1f

    if-gt v1, v2, :cond_1e

    mul-int/lit8 v1, v2, 0x10

    const/16 v4, 0x9

    .line 119
    div-int/2addr v1, v4

    .line 120
    :cond_1e
    sget-object v4, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_CENTER:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object v4, v3, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    .line 121
    :cond_1f
    iget v4, v3, Lcom/esfile/screen/recorder/media/c$h;->n:I

    if-lez v4, :cond_20

    iget v5, v3, Lcom/esfile/screen/recorder/media/c$h;->o:I

    if-lez v5, :cond_20

    .line 122
    sget-object v1, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_CENTER:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object v1, v3, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    move v1, v4

    move v2, v5

    .line 123
    :cond_20
    iget v4, v3, Lcom/esfile/screen/recorder/media/c$h;->m:I

    if-lez v4, :cond_21

    if-le v2, v4, :cond_21

    int-to-float v1, v1

    const/high16 v5, 0x3f800000    # 1.0f

    mul-float v1, v1, v5

    int-to-float v2, v2

    div-float/2addr v1, v2

    int-to-float v2, v4

    mul-float v1, v1, v2

    float-to-int v1, v1

    move v2, v4

    :cond_21
    if-eqz v19, :cond_24

    if-lez v20, :cond_22

    if-gtz v23, :cond_23

    :cond_22
    const/16 v20, 0x2d0

    const/16 v23, 0x500

    :cond_23
    move/from16 v1, v20

    move/from16 v2, v23

    :cond_24
    const-string v4, "video/avc"

    .line 124
    invoke-static {v4, v1, v2}, Lcom/esfile/screen/recorder/media/util/u;->a(Ljava/lang/String;II)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v1

    .line 125
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v2

    .line 126
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v1

    .line 127
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Finally dest size is "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "x"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v9, v4}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v4, -0x1

    if-eq v8, v4, :cond_26

    const-string v15, "video/avc"

    move/from16 v16, v8

    move/from16 v18, v2

    move/from16 v19, v1

    move/from16 v20, v28

    .line 128
    invoke-static/range {v15 .. v20}, Lcom/esfile/screen/recorder/media/util/d;->a(Ljava/lang/String;IIIII)Les/b9;

    move-result-object v5

    if-eqz v5, :cond_25

    .line 129
    iget v4, v5, Les/b9;->b:I

    invoke-static {v4}, Lcom/esfile/screen/recorder/media/util/c;->g(I)I

    move-result v12

    .line 130
    iget v4, v5, Les/b9;->c:I

    invoke-static {v4}, Lcom/esfile/screen/recorder/media/util/c;->f(I)I

    move-result v4

    move-object v6, v5

    move v5, v4

    move v4, v12

    goto :goto_10

    :cond_25
    move-object v6, v5

    const/4 v5, -0x1

    goto :goto_10

    :cond_26
    move v4, v8

    move/from16 v5, v17

    move-object/from16 v6, v24

    .line 131
    :goto_10
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "Finally dest profile&level is "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v8, "&"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v9, v7}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 132
    div-long v7, v21, v26

    iput-wide v7, v3, Lcom/esfile/screen/recorder/media/c$h;->q:J

    .line 133
    new-instance v7, Les/ja$d;

    const-wide/16 v22, -0x1

    const-wide/16 v24, -0x1

    iget-object v8, v3, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    move-object v15, v7

    move/from16 v16, v2

    move/from16 v17, v1

    move/from16 v18, v0

    move/from16 v19, v28

    move/from16 v20, v4

    move/from16 v21, v5

    move-object/from16 v26, v8

    move-object/from16 v27, v6

    invoke-direct/range {v15 .. v27}, Les/ja$d;-><init>(IIIIIIJJLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Les/b9;)V

    iput-object v7, v3, Lcom/esfile/screen/recorder/media/c$h;->r:Les/ja$d;

    .line 134
    new-instance v6, Les/ia$b;

    iget-object v7, v3, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    move-object v15, v6

    move-object/from16 v26, v7

    invoke-direct/range {v15 .. v26}, Les/ia$b;-><init>(IIIIIIJJLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)V

    iput-object v6, v3, Lcom/esfile/screen/recorder/media/c$h;->t:Les/ia$b;

    .line 135
    new-instance v1, Les/y9$f;

    const-wide/16 v19, -0x1

    const-wide/16 v21, -0x1

    const/high16 v23, 0x3f800000    # 1.0f

    move-object/from16 v16, v1

    move/from16 v17, v29

    move/from16 v18, v30

    invoke-direct/range {v16 .. v23}, Les/y9$f;-><init>(IIJJF)V

    iput-object v1, v3, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    .line 136
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "prepareSources v:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v3, Lcom/esfile/screen/recorder/media/c$h;->r:Les/ja$d;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, "\na:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v3, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v9, v1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 137
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v4, v3, Lcom/esfile/screen/recorder/media/c$h;->q:J

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "ms"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "media_sdk"

    const-string v4, "merge_vid_time"

    invoke-static {v2, v4, v1}, Les/la;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 138
    iget-wide v1, v3, Lcom/esfile/screen/recorder/media/c$h;->q:J

    iget-boolean v4, v3, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    if-eqz v4, :cond_27

    const v4, 0x1f400

    goto :goto_11

    :cond_27
    const/4 v4, 0x0

    :goto_11
    add-int/2addr v0, v4

    invoke-direct {v3, v1, v2, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(JI)Z

    move-result v0

    if-eqz v0, :cond_28

    const/4 v8, 0x0

    goto :goto_12

    :cond_28
    new-instance v8, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$OutOfSpaceException;

    const-string v0, "Your storage space is not enough"

    invoke-direct {v8, v0}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$OutOfSpaceException;-><init>(Ljava/lang/String;)V

    :goto_12
    return-object v8
.end method

.method private a(Lcom/esfile/screen/recorder/media/c$f;)V
    .locals 11

    const-wide/16 v0, -0x1

    .line 15
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->y:J

    .line 16
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->z:J

    .line 17
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    const v2, 0xf4240

    .line 18
    iget-object v3, p0, Lcom/esfile/screen/recorder/media/c$h;->r:Les/ja$d;

    iget v3, v3, Les/ja$d;->d:I

    div-int/2addr v2, v3

    int-to-long v2, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    .line 19
    :cond_0
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->w:J

    .line 20
    iget-object v0, p1, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Les/b8;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    if-eqz v0, :cond_1

    .line 21
    invoke-virtual {v0}, Les/s9;->a()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    :cond_1
    move-object v0, v1

    :goto_0
    if-eqz v0, :cond_2

    .line 22
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    iput-object v0, v2, Les/b8;->b:Ljava/lang/Object;

    goto :goto_1

    .line 23
    :cond_2
    iput-object v1, p1, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    .line 24
    :goto_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    if-eqz v0, :cond_3

    .line 25
    invoke-virtual {v0, v1}, Les/s9;->a(Les/s9$b;)V

    .line 26
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    invoke-virtual {v0}, Les/s9;->e()V

    .line 27
    :cond_3
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/c$f;->b()Z

    move-result v0

    if-eqz v0, :cond_5

    .line 28
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->r:Les/ja$d;

    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->c:J

    iput-wide v2, v0, Les/ja$d;->g:J

    .line 29
    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->d:J

    iput-wide v2, v0, Les/ja$d;->h:J

    .line 30
    iget v2, p1, Lcom/esfile/screen/recorder/media/c$f;->h:I

    iput v2, v0, Les/ja$d;->j:I

    .line 31
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->i:Landroid/graphics/RectF;

    iput-object v2, v0, Les/ja$d;->k:Landroid/graphics/RectF;

    .line 32
    iget-boolean v2, p1, Lcom/esfile/screen/recorder/media/c$f;->j:Z

    iput-boolean v2, v0, Les/ja$d;->l:Z

    .line 33
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->k:Ljava/util/List;

    iput-object v2, v0, Les/ja$d;->m:Ljava/util/List;

    .line 34
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    iput-object v2, v0, Les/ja$d;->n:Les/b8;

    .line 35
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->o:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    sget-object v3, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->UNKNOWN:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    if-eq v2, v3, :cond_4

    .line 36
    iput-object v2, v0, Les/ja$d;->i:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    goto :goto_2

    .line 37
    :cond_4
    iget-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object v2, v0, Les/ja$d;->i:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    .line 38
    :goto_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->r:Les/ja$d;

    move-object v4, v0

    move-object v6, v1

    goto :goto_4

    .line 39
    :cond_5
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/c$f;->a()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 40
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->t:Les/ia$b;

    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->c:J

    iput-wide v2, v0, Les/ia$b;->g:J

    .line 41
    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->d:J

    iput-wide v2, v0, Les/ia$b;->h:J

    .line 42
    iget v2, p1, Lcom/esfile/screen/recorder/media/c$f;->h:I

    iput v2, v0, Les/ia$b;->j:I

    .line 43
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->i:Landroid/graphics/RectF;

    iput-object v2, v0, Les/ia$b;->k:Landroid/graphics/RectF;

    .line 44
    iget-boolean v2, p1, Lcom/esfile/screen/recorder/media/c$f;->j:Z

    iput-boolean v2, v0, Les/ia$b;->l:Z

    .line 45
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->k:Ljava/util/List;

    iput-object v2, v0, Les/ia$b;->m:Ljava/util/List;

    .line 46
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->a:Ljava/lang/Object;

    iput-object v2, v0, Les/ia$b;->n:Ljava/lang/Object;

    .line 47
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    iput-object v2, v0, Les/ia$b;->o:Les/b8;

    .line 48
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->o:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    sget-object v3, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->UNKNOWN:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    if-eq v2, v3, :cond_6

    .line 49
    iput-object v2, v0, Les/ia$b;->i:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    goto :goto_3

    .line 50
    :cond_6
    iget-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->v:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object v2, v0, Les/ia$b;->i:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    .line 51
    :goto_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->t:Les/ia$b;

    move-object v6, v0

    move-object v4, v1

    goto :goto_4

    :cond_7
    move-object v4, v1

    move-object v6, v4

    .line 52
    :goto_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->c:J

    iput-wide v2, v0, Les/y9$f;->a:J

    .line 53
    iget-wide v2, p1, Lcom/esfile/screen/recorder/media/c$f;->d:J

    iput-wide v2, v0, Les/y9$f;->b:J

    .line 54
    iget v2, p1, Lcom/esfile/screen/recorder/media/c$f;->e:F

    iput v2, v0, Les/y9$f;->e:F

    .line 55
    iget-object v2, p1, Lcom/esfile/screen/recorder/media/c$f;->k:Ljava/util/List;

    iput-object v2, v0, Les/y9$f;->f:Ljava/util/List;

    .line 56
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/c$f;->b()Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p1, Lcom/esfile/screen/recorder/media/c$f;->a:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    move-object v3, v0

    goto :goto_5

    :cond_8
    move-object v3, v1

    .line 57
    :goto_5
    new-instance v0, Les/s9;

    iget-object v5, p0, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    iget-boolean v2, p1, Lcom/esfile/screen/recorder/media/c$f;->n:Z

    if-eqz v2, :cond_9

    iget-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->i:Les/f8;

    move-object v7, v2

    goto :goto_6

    :cond_9
    move-object v7, v1

    :goto_6
    iget-boolean v2, p1, Lcom/esfile/screen/recorder/media/c$f;->m:Z

    if-eqz v2, :cond_a

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->j:Les/t7;

    :cond_a
    move-object v8, v1

    iget-object v9, p0, Lcom/esfile/screen/recorder/media/c$h;->k:Les/aa;

    iget-boolean v10, p0, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    move-object v2, v0

    invoke-direct/range {v2 .. v10}, Les/s9;-><init>(Ljava/lang/String;Les/ja$d;Les/y9$f;Les/ia$b;Les/f8;Les/t7;Les/aa;Z)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    .line 58
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->A:Les/s9$b;

    invoke-virtual {v0, v1}, Les/s9;->a(Les/s9$b;)V

    .line 59
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/media/c$h;->x:J

    invoke-virtual {v0, v1, v2}, Les/s9;->a(J)V

    .line 60
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    invoke-virtual {v0}, Les/s9;->d()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 61
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    invoke-virtual {v1}, Les/s9;->b()Z

    move-result v1

    xor-int/lit8 v1, v1, 0x1

    iput-boolean v1, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    .line 62
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    invoke-virtual {v1}, Les/s9;->c()Z

    move-result v1

    xor-int/lit8 v1, v1, 0x1

    iput-boolean v1, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    .line 63
    :cond_b
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "startOK:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v3, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v2, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "dvsr"

    invoke-static {v2, v1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v0, :cond_c

    .line 64
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    if-eqz v0, :cond_d

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    if-eqz v0, :cond_d

    .line 65
    :cond_c
    new-instance v0, Ljava/lang/RuntimeException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "An error data: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p1, Lcom/esfile/screen/recorder/media/c$f;->a:Ljava/lang/Object;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(Ljava/lang/Exception;)V

    :cond_d
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/c$h;Ljava/lang/Exception;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/media/c$h;->a(Ljava/lang/Exception;)V

    return-void
.end method

.method private a(Ljava/lang/Exception;)V
    .locals 2

    const-string v0, "dvsr"

    const-string v1, "handleError "

    .line 10
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 11
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->p:Z

    .line 12
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/j;->a(Ljava/io/File;)Z

    .line 13
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/media/c$h;->a()V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->C:Lcom/esfile/screen/recorder/media/c;

    invoke-static {v0, p0, p1}, Lcom/esfile/screen/recorder/media/c;->a(Lcom/esfile/screen/recorder/media/c;Lcom/esfile/screen/recorder/media/c$h;Ljava/lang/Exception;)V

    return-void
.end method

.method private a(JI)Z
    .locals 2

    .line 139
    invoke-static {p1, p2, p3}, Lcom/esfile/screen/recorder/media/util/u;->a(JI)J

    move-result-wide p1

    const-wide/32 v0, 0x1400000

    add-long/2addr p1, v0

    .line 140
    new-instance p3, Ljava/io/File;

    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    invoke-direct {p3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p3}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3, p1, p2}, Lcom/esfile/screen/recorder/media/util/h;->a(Ljava/lang/String;J)Z

    move-result p1

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/c$h;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/media/c$h;->f:Z

    return p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/c$h;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/media/c$h;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    return-object p0
.end method

.method private b()V
    .locals 8

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    iget v1, v0, Les/y9$f;->c:I

    .line 5
    iget v0, v0, Les/y9$f;->d:I

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 7
    iget-object v3, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_6

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/ba;

    if-eqz v4, :cond_5

    .line 8
    iget v5, v4, Les/ba;->e:F

    const/4 v6, 0x0

    cmpg-float v5, v5, v6

    if-lez v5, :cond_5

    iget-object v5, v4, Les/ba;->c:Landroid/util/Pair;

    .line 9
    invoke-static {v5}, Lcom/esfile/screen/recorder/media/util/x;->b(Landroid/util/Pair;)Z

    move-result v5

    if-eqz v5, :cond_5

    iget-object v5, v4, Les/ba;->d:Landroid/util/Pair;

    .line 10
    invoke-static {v5}, Lcom/esfile/screen/recorder/media/util/x;->b(Landroid/util/Pair;)Z

    move-result v5

    if-nez v5, :cond_2

    goto :goto_1

    .line 11
    :cond_2
    iget-object v5, v4, Les/ba;->b:Ljava/lang/String;

    invoke-static {v5}, Lcom/esfile/screen/recorder/media/util/u;->a(Ljava/lang/String;)[Landroid/media/MediaFormat;

    move-result-object v5

    const/4 v6, 0x0

    aget-object v5, v5, v6

    if-nez v5, :cond_3

    .line 12
    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    const-string v4, "sample-rate"

    .line 13
    invoke-static {v5, v4, v6}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v4

    const-string v7, "channel-count"

    .line 14
    invoke-static {v5, v7, v6}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v5

    if-le v4, v1, :cond_4

    move v1, v4

    :cond_4
    if-le v5, v0, :cond_1

    const/4 v4, 0x2

    if-gt v5, v4, :cond_1

    move v0, v5

    goto :goto_0

    .line 15
    :cond_5
    :goto_1
    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 16
    :cond_6
    iget-object v3, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z

    .line 17
    iget-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_8

    .line 18
    iget-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->s:Les/y9$f;

    iput v1, v2, Les/y9$f;->c:I

    .line 19
    iput v0, v2, Les/y9$f;->d:I

    .line 20
    new-instance v2, Les/aa;

    iget-object v3, p0, Lcom/esfile/screen/recorder/media/c$h;->l:Ljava/util/List;

    invoke-direct {v2, v3, v1, v0}, Les/aa;-><init>(Ljava/util/List;II)V

    iput-object v2, p0, Lcom/esfile/screen/recorder/media/c$h;->k:Les/aa;

    .line 21
    invoke-virtual {v2}, Les/aa;->c()Z

    move-result v0

    if-nez v0, :cond_7

    const/4 v0, 0x0

    .line 22
    iput-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->k:Les/aa;

    goto :goto_2

    :cond_7
    const/4 v0, 0x1

    .line 23
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    :cond_8
    :goto_2
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/media/c$h;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    return p1
.end method

.method private c()V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 4
    invoke-virtual {v0, v1}, Les/s9;->a(Les/s9$b;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->d:Les/s9;

    invoke-virtual {v0}, Les/s9;->e()V

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->k:Les/aa;

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {v0}, Les/aa;->d()V

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->c:Les/j9;

    if-eqz v0, :cond_2

    .line 9
    invoke-virtual {v0}, Les/j9;->e()V

    .line 10
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->i:Les/f8;

    if-eqz v0, :cond_3

    .line 11
    invoke-virtual {v0}, Les/f8;->b()V

    .line 12
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->j:Les/t7;

    if-eqz v0, :cond_4

    .line 13
    invoke-virtual {v0}, Les/t7;->a()V

    :cond_4
    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/media/c$h;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/media/c$h;->u:Z

    return p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/media/c$h;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    return p1
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/media/c$h;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/c$h;->q:J

    return-wide v0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/media/c$h;->c:Les/j9;

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/media/c$h;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/media/c$h;->p:Z

    return p0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x1

    .line 8
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->f:Z

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/media/c$h;->stop()V

    return-void
.end method

.method public a(I)V
    .locals 0

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/media/c$h;->m:I

    return-void
.end method

.method public a(II)V
    .locals 0

    .line 6
    iput p1, p0, Lcom/esfile/screen/recorder/media/c$h;->n:I

    .line 7
    iput p2, p0, Lcom/esfile/screen/recorder/media/c$h;->o:I

    return-void
.end method

.method public run()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->C:Lcom/esfile/screen/recorder/media/c;

    invoke-static {v0, p0}, Lcom/esfile/screen/recorder/media/c;->a(Lcom/esfile/screen/recorder/media/c;Lcom/esfile/screen/recorder/media/c$h;)V

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->b:Ljava/util/List;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(Ljava/util/List;)Ljava/lang/Exception;

    move-result-object v0

    if-nez v0, :cond_3

    .line 3
    new-instance v0, Les/j9;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->B:Les/j9$b;

    invoke-direct {v0, v1}, Les/j9;-><init>(Les/j9$b;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->c:Les/j9;

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Les/j9;->a(Ljava/lang/String;)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/media/c$h;->b()V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/media/c$f;

    .line 7
    iget-boolean v2, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    if-nez v2, :cond_0

    goto :goto_2

    :cond_0
    const-string v2, "dvsr"

    const-string v3, "stitch --- 1"

    .line 8
    invoke-static {v2, v3}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/media/c$h;->a(Lcom/esfile/screen/recorder/media/c$f;)V

    .line 10
    monitor-enter p0
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 11
    :goto_1
    :try_start_1
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    if-eqz v1, :cond_2

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    if-eqz v1, :cond_1

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    if-nez v1, :cond_2

    :cond_1
    const-wide/16 v1, 0xa

    .line 12
    invoke-virtual {p0, v1, v2}, Ljava/lang/Object;->wait(J)V

    goto :goto_1

    .line 13
    :cond_2
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    const-string v1, "dvsr"

    .line 14
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "stitch --- 2 "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v3, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v3, p0, Lcom/esfile/screen/recorder/media/c$h;->g:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v3, p0, Lcom/esfile/screen/recorder/media/c$h;->h:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 15
    :try_start_3
    monitor-exit p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v0

    .line 16
    :cond_3
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(Ljava/lang/Exception;)V
    :try_end_4
    .catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_1
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 17
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(Ljava/lang/Exception;)V

    goto :goto_2

    :catch_1
    nop

    .line 18
    :cond_4
    :goto_2
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->p:Z

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->c:Les/j9;

    if-eqz v0, :cond_5

    invoke-virtual {v0}, Les/j9;->a()Z

    move-result v0

    if-nez v0, :cond_5

    .line 19
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/esfile/screen/recorder/media/c$h;->a:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/j;->a(Ljava/io/File;)Z

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h;->C:Lcom/esfile/screen/recorder/media/c;

    invoke-static {v0, p0}, Lcom/esfile/screen/recorder/media/c;->b(Lcom/esfile/screen/recorder/media/c;Lcom/esfile/screen/recorder/media/c$h;)V

    .line 21
    :cond_5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/media/c$h;->c()V

    return-void
.end method

.method public declared-synchronized stop()V
    .locals 1

    monitor-enter p0

    const/4 v0, 0x0

    .line 1
    :try_start_0
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/c$h;->e:Z

    .line 2
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
